<script setup lang="ts">
import { Dialog, Message, sleep } from '@idmy/core'
import { Button, Space, Card } from 'ant-design-vue'
import { method } from 'lodash-es'

const onClick = async (method: 'confirm') => {
	await Dialog[method]({
		title: '提示',
		cancelable: false,
		content: '这是一段内容，这是一段内容，这是一段内容，这是一段内容。',
		async onOk() {
			Message.info('关闭')
		},
	})
	Message.info(method)
}
</script>

<template>
	<Card title="Dialog">
		<Button type="primary" @click="onClick('confirm')">确认</Button>
	</Card>
</template>

<style scoped></style>
